def calc_avg_above_10(numbers):
    total = 0  # 总和
    count = 0  # 符合条件的数字个数
    for num in numbers:
        if num > 10:  # 筛选大于10的数
            total += num
            count += 1
    return total / count  # 返回平均值

if __name__ == "__main__":
    nums = [5, 12, 8, 15, 20, 7]
    result = calc_avg_above_10(nums)
    print(f"大于10的数字平均值：{result}")